import request from '@/utils/request'
import qs from 'qs';

export function add(data) {
  return request({
    url: 'api/tEngineerMoney',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: 'api/tEngineerMoney/delete/list',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'api/tEngineerMoney',
    method: 'put',
    data
  })
}

export function queryEngineerMoney(contractId, contractCode) {
  const params = {
    contractId,
    contractCode
  }
  return request({
    url: 'api/tEngineerMoney?' + qs.stringify(params, { indices: false }),
    method: 'get'
  })
}

